package com.white.seckill;

/**
 * <p>
 * 九价秒杀
 * </p>
 *
 * @author white
 * @since 2022/4/6
 */
public class Main {

    /**
     * 九价商品ID
     */
    private static final String PRODUCT_ID = "19";

    public static void main(String[] args) {
        Spike spike = new Spike(
                "0",
                "0",
                PRODUCT_ID,
                "女朋友身份证号",
                "女朋友名字",
                "女朋友手机号",
                "cookie值");
        //cookie 通过小程序抓包获取示例：;_siteStatVisitorType=visitorType_xxxx;_cliid=xxxx;_pdDay_19_0=xxx;_pdDay_186_0=xxx;lastLoginTimexxx=xxx;_FSESSIONID=xxx;loginMemberAcct=xxx;_orderSign=xxx;_orderSettleDay_37123=xxx;_orderBuyer=xxxx;_pdDay_172_0=xxx;_pdDay_182_0=xxx;_pdDay_98_0=xxx;_pdDay_233_0=xxx;_pdDay_24_0=xxx;_pdDay_175_0=xxx;_siteStatId=xxx;_siteStatDay=xxx;_siteStatRedirectUv=redirectUv_xxx;_filterVisitTime=xxx;_siteStatReVisit=reVisit_xxx;_siteStatVisit=visit_xxx;_siteStatVisitTime=xxx;is_beta_site_xxx_0=false;loginCaid=xxx;siteId=0
        //是否抢购成功
        boolean success;
        do {
            try {
                spike.run();
                success = true;
            } catch (Throwable e){
                success = false;
                e.printStackTrace();
            }
        }while (!success);
    }

}
